<?php
require_once 'function.php';
require_once 'lang/french.php';
if(is_file('../conf/config.php'))
{
    // propose la mise a jour vers dossier update
    require_once 'header_update.php';
    echo'<h3>Mise a jour d IMMOPHP</h3>
    <div>
        <br />
        <br />
        <br />
        <div style="margin: auto; width: 75%;">
            <div class="bad100">
                <div style="float: left;"><img src="images/alert.gif" border="0" /></div>
                <div>'. $lang['Text_avant_mise_a_jour'] .'</div>
                <div style="clear: both;"></div>
            </div>
            </div>
        <br />
        <br />
        <br />
        <form method="post" action="update.php">
            <div style="text-align:center; margin:auto;">
                <input type="checkbox" name="check_backup" /> Je certifie avoir sauvegarde ma base de donnees
            </div>
            <div>&nbsp;</div>
            <div style="text-align:center; margin:auto;">
                <input type="submit" value="Mettre a jour" />
            </div>
        </form>
    </div>';
}
else
{
    // installation
    require_once 'header.php';
    echo '<div>'. $lang['Bienvenue_script_installation_immophp'] .'</div>
    <div>
        <br />
        <br />
        <br />
        <form method="post" action="page_check_system.php">
            <div style="text-align:center; margin:auto;">
                <input type="submit" value="'. $lang['Commencer_installation'] .'" />
            </div>
        </form>
    </div>';
}
require_once 'footer.php';
?>